/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: SysOss
 * Author:   zhouheng
 * Date:     2018/7/13 10:49
 * Description: oss实体类
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.modular.oss.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 〈一句话功能简述〉<br> 
 * 〈oss实体类〉
 *
 * @author zhouheng
 * @create 2018/7/13
 * @since 1.0.0
 */

@Getter
@Setter
@TableName("sys_oss")
public class SysOss implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    private Long id;

    //URL地址
    @TableField(value = "url")
    private String url;

    //创建时间
    @TableField(value = "createDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
}